/*----------------------------------------------------------------------------------------
*
*  Copyright 2019, Gao Hai Hui, <fromzeropoint@126.com>.  All rights reserved.
*  https://gitee.com/helloworldghh/xoskit.git
*  Use of this source code is governed by a MIT license
*  that can be found in the License file.
*
----------------------------------------------------------------------------------------*/
#ifndef __IMPL_MGR_H__
#define __IMPL_MGR_H__

namespace xos_box
{
    class i_big_buf;
    class i_buf;
}

namespace xos_package
{

    class mgr : public i_package_mgr
    {
    public:
        typedef xos::release_impl< mgr > T;

    public:
        mgr();
        ~mgr();

    public:
        static int static_init( xos_container::i_container * pContainer, i_package_mgr ** ppv );
        static xos_container::i_container * container();
        static mgr * get();

    public:
        i_package* package();
        i_all* all();

    public:
        int put_back_to_pool();
        int init();
        int term();

    };

} // xos_package

#endif // __IMPL_MGR_H__
